<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/cudaYUV.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('cudaYUV_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">cudaYUV.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="cudaUtility_8h_source.html">cudaUtility.h</a>&quot;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
</div>
<p><a href="cudaYUV_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">RGBA to YUV 4:2:0 planar (I420 &amp; YV12)</div></td></tr>
<tr class="memitem:ga07e7948adfdc5d54aa7ad66a07594436"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga07e7948adfdc5d54aa7ad66a07594436">cudaRGBAToI420</a> (uchar4 *input, uint8_t *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga07e7948adfdc5d54aa7ad66a07594436"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert an RGBA uchar4 buffer into YUV I420 planar.  <a href="group__colorspace.html#ga07e7948adfdc5d54aa7ad66a07594436">More...</a><br /></td></tr>
<tr class="separator:ga07e7948adfdc5d54aa7ad66a07594436"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaef00003322b391987423ea231f3b9a2a"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gaef00003322b391987423ea231f3b9a2a">cudaRGBAToI420</a> (uchar4 *input, size_t inputPitch, uint8_t *output, size_t outputPitch, size_t width, size_t height)</td></tr>
<tr class="memdesc:gaef00003322b391987423ea231f3b9a2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert an RGBA uchar4 texture into YUV I420 planar.  <a href="group__colorspace.html#gaef00003322b391987423ea231f3b9a2a">More...</a><br /></td></tr>
<tr class="separator:gaef00003322b391987423ea231f3b9a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga11d4f50d51f628b87065a0eae51bf74c"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga11d4f50d51f628b87065a0eae51bf74c">cudaRGBAToYV12</a> (uchar4 *input, uint8_t *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga11d4f50d51f628b87065a0eae51bf74c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert an RGBA uchar4 buffer into YUV YV12 planar.  <a href="group__colorspace.html#ga11d4f50d51f628b87065a0eae51bf74c">More...</a><br /></td></tr>
<tr class="separator:ga11d4f50d51f628b87065a0eae51bf74c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaba305a2d1de9a6af1421ff69ca52d1a"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gaaba305a2d1de9a6af1421ff69ca52d1a">cudaRGBAToYV12</a> (uchar4 *input, size_t inputPitch, uint8_t *output, size_t outputPitch, size_t width, size_t height)</td></tr>
<tr class="memdesc:gaaba305a2d1de9a6af1421ff69ca52d1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert an RGBA uchar4 texture into YUV YV12 planar.  <a href="group__colorspace.html#gaaba305a2d1de9a6af1421ff69ca52d1a">More...</a><br /></td></tr>
<tr class="separator:gaaba305a2d1de9a6af1421ff69ca52d1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">YUV 4:2:2 packed (UYVY &amp; YUYV) to RGBA</div></td></tr>
<tr class="memitem:gab5f3d84261b776f48516d042cf0c8e36"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gab5f3d84261b776f48516d042cf0c8e36">cudaUYVYToRGBA</a> (uchar2 *input, uchar4 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:gab5f3d84261b776f48516d042cf0c8e36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a UYVY 422 packed image into RGBA uchar4.  <a href="group__colorspace.html#gab5f3d84261b776f48516d042cf0c8e36">More...</a><br /></td></tr>
<tr class="separator:gab5f3d84261b776f48516d042cf0c8e36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8616c8a7b08ce54489e9d80749514cf9"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga8616c8a7b08ce54489e9d80749514cf9">cudaUYVYToRGBA</a> (uchar2 *input, size_t inputPitch, uchar4 *output, size_t outputPitch, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga8616c8a7b08ce54489e9d80749514cf9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a UYVY 422 packed image into RGBA uchar4.  <a href="group__colorspace.html#ga8616c8a7b08ce54489e9d80749514cf9">More...</a><br /></td></tr>
<tr class="separator:ga8616c8a7b08ce54489e9d80749514cf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga72ff96aa79c763ff7a352c0160d797a4"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga72ff96aa79c763ff7a352c0160d797a4">cudaYUYVToRGBA</a> (uchar2 *input, uchar4 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga72ff96aa79c763ff7a352c0160d797a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a YUYV 422 packed image into RGBA uchar4.  <a href="group__colorspace.html#ga72ff96aa79c763ff7a352c0160d797a4">More...</a><br /></td></tr>
<tr class="separator:ga72ff96aa79c763ff7a352c0160d797a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga23a13ae822b173d060721641dcd97e20"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga23a13ae822b173d060721641dcd97e20">cudaYUYVToRGBA</a> (uchar2 *input, size_t inputPitch, uchar4 *output, size_t outputPitch, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga23a13ae822b173d060721641dcd97e20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a YUYV 422 packed image into RGBA uchar4.  <a href="group__colorspace.html#ga23a13ae822b173d060721641dcd97e20">More...</a><br /></td></tr>
<tr class="separator:ga23a13ae822b173d060721641dcd97e20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">UYUV 4:2:2 packed (UYVY &amp; YUYV) to grayscale</div></td></tr>
<tr class="memitem:ga6d8b6042d82b4b8865447d8b562bfc40"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga6d8b6042d82b4b8865447d8b562bfc40">cudaUYVYToGray</a> (uchar2 *input, float *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga6d8b6042d82b4b8865447d8b562bfc40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a UYVY 422 packed image into a floating-point grayscale image.  <a href="group__colorspace.html#ga6d8b6042d82b4b8865447d8b562bfc40">More...</a><br /></td></tr>
<tr class="separator:ga6d8b6042d82b4b8865447d8b562bfc40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9209621b9a1638e34aed08f067f61271"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga9209621b9a1638e34aed08f067f61271">cudaUYVYToGray</a> (uchar2 *input, size_t inputPitch, float *output, size_t outputPitch, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga9209621b9a1638e34aed08f067f61271"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a UYVY 422 packed image into a floating-point grayscale image.  <a href="group__colorspace.html#ga9209621b9a1638e34aed08f067f61271">More...</a><br /></td></tr>
<tr class="separator:ga9209621b9a1638e34aed08f067f61271"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga964d1cd8eefa841fa86447c1886289e3"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga964d1cd8eefa841fa86447c1886289e3">cudaYUYVToGray</a> (uchar2 *input, float *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga964d1cd8eefa841fa86447c1886289e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a YUYV 422 packed image into a floating-point grayscale image.  <a href="group__colorspace.html#ga964d1cd8eefa841fa86447c1886289e3">More...</a><br /></td></tr>
<tr class="separator:ga964d1cd8eefa841fa86447c1886289e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf6783748deee34af1ab479b6b52eee86"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gaf6783748deee34af1ab479b6b52eee86">cudaYUYVToGray</a> (uchar2 *input, size_t inputPitch, float *output, size_t outputPitch, size_t width, size_t height)</td></tr>
<tr class="memdesc:gaf6783748deee34af1ab479b6b52eee86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a YUYV 422 packed image into a floating-point grayscale image.  <a href="group__colorspace.html#gaf6783748deee34af1ab479b6b52eee86">More...</a><br /></td></tr>
<tr class="separator:gaf6783748deee34af1ab479b6b52eee86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">YUV NV12 to RGBA</div></td></tr>
<tr class="memitem:gad2e9cd00d56bd95d4786a04ed37ba56d"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gad2e9cd00d56bd95d4786a04ed37ba56d">cudaNV12ToRGBA</a> (uint8_t *input, uchar4 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:gad2e9cd00d56bd95d4786a04ed37ba56d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert an NV12 texture (semi-planar 4:2:0) to RGBA uchar4 format.  <a href="group__colorspace.html#gad2e9cd00d56bd95d4786a04ed37ba56d">More...</a><br /></td></tr>
<tr class="separator:gad2e9cd00d56bd95d4786a04ed37ba56d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0eadad6bfffcba0f1f5962afbb758d0f"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga0eadad6bfffcba0f1f5962afbb758d0f">cudaNV12ToRGBA</a> (uint8_t *input, size_t inputPitch, uchar4 *output, size_t outputPitch, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga0eadad6bfffcba0f1f5962afbb758d0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert an NV12 texture (semi-planar 4:2:0) to RGBA uchar4 format.  <a href="group__colorspace.html#ga0eadad6bfffcba0f1f5962afbb758d0f">More...</a><br /></td></tr>
<tr class="separator:ga0eadad6bfffcba0f1f5962afbb758d0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaa446eddda53e5c7ba8ae6e8b86f3a90"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gaaa446eddda53e5c7ba8ae6e8b86f3a90">cudaNV12ToRGBA32</a> (uint8_t *input, float4 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:gaaa446eddda53e5c7ba8ae6e8b86f3a90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert an NV12 texture (semi-planar 4:2:0) to RGBA float4 format.  <a href="group__colorspace.html#gaaa446eddda53e5c7ba8ae6e8b86f3a90">More...</a><br /></td></tr>
<tr class="separator:gaaa446eddda53e5c7ba8ae6e8b86f3a90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63ee6b21e016acf97e5f31808e01b1ac"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga63ee6b21e016acf97e5f31808e01b1ac">cudaNV12ToRGBA32</a> (uint8_t *input, size_t inputPitch, float4 *output, size_t outputPitch, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga63ee6b21e016acf97e5f31808e01b1ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert an NV12 texture (semi-planar 4:2:0) to RGBA float4 format.  <a href="group__colorspace.html#ga63ee6b21e016acf97e5f31808e01b1ac">More...</a><br /></td></tr>
<tr class="separator:ga63ee6b21e016acf97e5f31808e01b1ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga078315cf961e65a9b6f33a5018c46911"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga078315cf961e65a9b6f33a5018c46911">cudaNV12SetupColorspace</a> (float hue=0.0f)</td></tr>
<tr class="memdesc:ga078315cf961e65a9b6f33a5018c46911"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setup NV12 color conversion constants.  <a href="group__colorspace.html#ga078315cf961e65a9b6f33a5018c46911">More...</a><br /></td></tr>
<tr class="separator:ga078315cf961e65a9b6f33a5018c46911"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="cudaYUV_8h.html">cudaYUV.h</a></li>
    <li class="footer">Generated on Fri Jun 21 2019 16:23:15 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
